<template>
  <div class="alet_container">
    <section class="tip_text_container">
      <div class="tip_icon">
        <span></span>
        <span></span>
      </div>
      <p class="tip_text">蓝牙连接已断开，请重新进入设备页面再检测！</p>
      <div class="cancel" @click="closeTip()">好的</div>

    </section>
  </div>
</template>

<script>
  export default {
    name: 'JianCeConnect',
    // props: ['alertText', 'LeftText', 'RightText'],
    data () {
      return {
        msg: 'Welcome to Your Vue.js App'
      }
    },
    methods: {
      closeTip () {
        window.hilink.finishDeviceActivity()
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  @keyframes tipMove{
    0%   { transform: scale(1) }
    35%  { transform: scale(.8) }
    70%  { transform: scale(1.1) }
    100% { transform: scale(1) }
  }
  .alet_container{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 99999999999;
  }
  .tip_text_container{
    position: absolute;
    width: 90%;
    bottom: 30px;
    left: 5%;
    border: 1px;
    animation: tipMove .4s ;
    border-radius: 0.7rem;
    display: flex;
    padding: 0 1.6rem 1.6rem;
    background-color: rgba(255,255,255,1);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .tip_text{
    color: black;
    font-size: 1.1rem;
    /* font-weight: bold; */
    line-height: 1.5rem;
    padding: 20px 0;
  }
  .cancel{
    text-align: center;
    width: 90%;
    height: 3rem!important;
    line-height: 3rem!important;
    margin: 0 5%!important;
    color: #0075f0;
    font-size: 1.2rem!important;
    border: 1px solid #eee;
    border-radius: 1.5rem!important;
    background: #f7f7f7!important;
  }

</style>
